const Layout = () => import('@/layout/index.vue')

const Brand = () => import('@/views/goods/brand.vue')
const Category = () => import('@/views/goods/category.vue')
const BrandCategory = () => import('@/views/goods/brandCategory.vue')
const Spec = () => import('@/views/goods/spec.vue')
const SpecCategory = () => import('@/views/goods/specCategory.vue')
const SPU = () => import('@/views/goods/spu.vue')
const SKU = () => import('@/views/goods/sku.vue')

export default [
	{
		path: '/goods',
		component: Layout,
		name: 'goods',
		meta: {
			title: '商品管理',
		},
		icon: 'icon-home',
		children: [
			{
				path: '/brand',
				name: 'goods-brand',
				component: Brand,
				meta: {
					title: '品牌管理',
				},
			},
			{
				path: '/category',
				name: 'goods-category',
				component: Category,
				meta: {
					title: '分类管理',
				},
			},
			{
				path: '/brandCategory',
				name: 'goods-brand-category',
				component: BrandCategory,
				meta: {
					title: '品牌分类管理',
				},
			},
			{
				path: '/spec',
				name: 'goods-spec',
				component: Spec,
				meta: {
					title: '规格管理',
				},
			},
			{
				path: '/spec/category',
				name: 'goods-spec-category',
				component: SpecCategory,
				meta: {
					title: '规格品类管理',
				},
			},
			{
				path: '/spu',
				name: 'goods-spu',
				component: SPU,
				meta: {
					title: '产品管理',
				},
			},
			{
				path: '/sku',
				name: 'goods-sku',
				component: SKU,
				meta: {
					title: '商品管理',
				},
			},
		],
	},
]